package com.nuanshui.heatedloan.credit.model.record;

/**
 * Created by Dargon on 2017/7/18.
 */

public class PhoneRecord {

    private String userId;
    private String cachedName;//姓名
    private String number;//号码
    private int type;//呼入(1)/呼出(2)/未接(3)
    private long calledDate;//拨打时间 毫秒为单位
    private int duration;//通话时长 秒为单位

    public PhoneRecord() {
    }

    public PhoneRecord(String userId, String cachedName, String number, int type, long calledDate, int duration) {
        this.userId = userId;
        this.cachedName = cachedName;
        this.number = number;
        this.type = type;
        this.calledDate = calledDate;
        this.duration = duration;
    }

    @Override
    public String toString() {
        return "PhoneRecordVO{" +
                "userId='" + userId + '\'' +
                ", cachedName='" + cachedName + '\'' +
                ", number='" + number + '\'' +
                ", type=" + type +
                ", calledDate=" + calledDate +
                ", duration=" + duration +
                '}';
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCachedName() {
        return cachedName;
    }

    public void setCachedName(String cachedName) {
        this.cachedName = cachedName;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getCalledDate() {
        return calledDate;
    }

    public void setCalledDate(long calledDate) {
        this.calledDate = calledDate;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }
}
